package com.shike.web.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shike.dao.entity.SkUser;
import com.shike.dao.mapper.SkUserMapper;
import org.springframework.stereotype.Service;

@Service
public class SkUserService extends ServiceImpl<SkUserMapper, SkUser> {

    public SkUser getByPhone(String phone) {
        return getOne(new LambdaQueryWrapper<SkUser>()
                .eq(SkUser::getPhone, phone));
    }
}
